#include "pch.h"
#include "judge.h"

void judge::isvecequ(vector<vector<any>> output, vector<vector<any>> result, vector<string> outputtype) {
	Assert::IsTrue(output.size() == result.size());
	Assert::IsTrue(output[0].size() == result[0].size());
	for (int j = 0; j < output[0].size(); j++) {
		if (outputtype[j] == "int") {
			vector<int> ocol, rcol;
			fuzhi(ocol, rcol, output, result, j);
			isequ(ocol, rcol);
		}
		if (outputtype[j] == "long") {
			vector<long> ocol, rcol;
			fuzhi(ocol, rcol, output, result, j);
			isequ(ocol, rcol);
		}
		if (outputtype[j] == "float") {
			vector<float> ocol, rcol;
			fuzhi(ocol, rcol, output, result, j);
			isequ(ocol, rcol);
		}
		if (outputtype[j] == "double") {
			vector<double> ocol, rcol;
			fuzhi(ocol, rcol, output, result, j);
			isequ(ocol, rcol);
		}
		if (outputtype[j] == "string") {
			vector<string> ocol, rcol;
			fuzhi(ocol, rcol, output, result, j);
			isequ(ocol, rcol);
		}
	}
}